/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function sendPost(varName, varValue)
{
    if(typeof(varName) == "object" && (varName instanceof Array)) {
        alert(varName['0']['element_n']);
    } else {
    var form = document.createElement("form");
    form.setAttribute("method", "POST");
    form.innerHTML = "<input type='hidden' name='" + varName + "' value='" + varValue + "' />";
    form.submit();
    }
}